<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="E_SystemEvents.aspx.cs" Inherits="ScottCateAjax2008.Lesson07.E_SystemEvents" Title="Built In System Events" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager id="SC1" runat="server">
       <Scripts>
            <asp:ScriptReference Path="E_SystemEvents.aspx.js" />
        </Scripts>
    </asp:ScriptManager>   

    <div>
        <h2>Page Events</h2>
        <ul>
            <li>init</li>
            <li>load - pageLoad Auto Wired (will fire twice if you add_load(pageLoad) )</li>
        </ul>
        <h2>Update Panel Events</h2>
        <ul>
            <li>initializeRequest</li>
            <li>beginRequest</li>
            <li>pageLoading</li>
            <li>pageLoaded - this is a great to to Eval JSON from the server</li>
            <li>endRequest</li>
        </ul>
    </div>
    
    <asp:UpdatePanel id="UP1" runat="server">
        <ContentTemplate>
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />        
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
